#

include         ../../../dist/dev/include/apmmodule/Makefile_comm.mk

CFLAGS          = 
CFLAGS          += $(CFLAGS_EXT) -DFRTEST_REPORT

#-DFRTEST_REPORT             测试模式，统计上报信息的数量
#-DFRSSL_SHM                 使用共享内存传输数据，不打开时使用zeromq传输数据

LIBS            = -lwolfssl -luuid -lpcap -lzlog -ldaq -lsfbpf -ldaq_static -lpthread $(XML2LIB) -lzmq -ljson-c
LIBS            += $(LIBS_EXT)

INCLUDES = -I. -I$(LIB_I_APM_COMM) -I$(LIB_I_APM_SHM) `xml2-config --cflags`

TARGET_BIN        := apmdssl

all: clean $(TARGET_BIN)

$(TARGET_BIN):
	$(CX) -pg -o $@ $(CFLAGS) frssl_config.c frssl_decode.c frssl_daq.c frssl_task_do.c frssl_main.c $(LIB_A_APM_COMM) $(LIB_A_APM_SHM) $(INCLUDES) $(LIBS)

install:
	rm -f $(COMM_DIST_DIR_BIN)/$(TARGET_BIN); mkdir -p  $(COMM_DIST_DIR_BIN); cp $(TARGET_BIN) $(COMM_DIST_DIR_BIN)/.

uninstall:
	rm -f $(COMM_DIST_DIR_BIN)/$(TARGET_BIN)

clean:
	rm -f *.o $(TARGET_BIN) *~ 

# EOF
